package com.demo.word2html.poi.support.office2007;

import org.apache.poi.xwpf.converter.xhtml.IContentHandlerFactory;
import org.apache.poi.xwpf.converter.xhtml.XHTMLOptions;
import org.xml.sax.ContentHandler;

import java.io.OutputStream;
import java.io.Writer;

/**
 * @author fenggang.li
 * @create 2019-09-11 17:53
 */
public class EntityConvertContentHandlerFactory implements IContentHandlerFactory {
    @Override
    public ContentHandler create(OutputStream out, Writer writer, XHTMLOptions options) {
        return new EntityConvertContentHandler(writer, options.getIndent());
    }
}
